﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using KPIS.GERP.GHRMS.DAL;
using KPIS.GERP.GHRMS.MODEL;
using KPIS.GERP.GHRMS.DALFactory;
using KPIS.GERP.GHRMS.IDAL;
using KPIS.GERP.GHRMS.IBLL;

namespace KPIS.GERP.GHRMS.BLL
{
    public class TreeViewBLL : ITreeViewBLL
    {
        private static readonly ITreeViewDAL dal = DataAccess.CreateTreeView();

        public TreeViewBLL()
        {

        }
        public IList<TreeViewInfo> LoadDistrictTreeView(string parent_id, bool fastMode = false)
        {
            return dal.LoadDistrictTreeView(parent_id, fastMode);
        }
        public IList<TreeViewInfo> LoadJobSiteTreeView(Nullable<int> JobSiteSeq, Nullable<int> JobSiteTypeSeq)
        {
            return dal.LoadJobSiteTreeView(JobSiteSeq, JobSiteTypeSeq);
        }
        public IList<TreeViewInfo> LoadJobSiteTreeViewForNWD(string parent_id, Nullable<int> NwdJobSite)
        {
            return dal.LoadJobSiteTreeViewForNWD(parent_id, NwdJobSite);
        }
        public IList<TreeViewInfo> LoadPositionTypeTreeView(string parent_id, string EmployeeTypes)
        {
            return dal.LoadPositionTypeTreeView(parent_id, EmployeeTypes);
        }
        public IList<TreeViewInfo> LoadFieldTreeViewForDuty(Nullable<int> EmpTypeSeq, string parent_id)
        {
            return dal.LoadFieldTreeViewForDuty(EmpTypeSeq, parent_id);
        }
        public IList<TreeViewInfo> LoadPositionTreeView(Nullable<int> EmpTypeSeq, string parent_id)
        {
            return dal.LoadPositionTreeView(EmpTypeSeq, parent_id);
        }
        public IList<TreeViewInfo> GetPositionResultSearch(Nullable<int> EmpTypeSeq, string text_search)
        {
            return dal.GetPositionResultSearch(EmpTypeSeq, text_search);
        }
        public IList<TreeViewInfo> LoadCountryZoneTreeView(string parent_id)
        {
            return dal.LoadCountryZoneTreeView(parent_id);
        }
        public IList<TreeViewInfo> LoadJobSiteAreaTreeView(string parent_id)
        {
            return dal.LoadJobSiteAreaTreeView(parent_id);
        }
        public IList<TreeViewInfo> LoadNonWorkingDayTreeView(string Year, string parent_id)
        {
            return dal.LoadNonWorkingDayTreeView(Year, parent_id);
        }
        public IList<TreeViewInfo> LoadAbsenceTreeView(string JobSite, string Employee, string parent_id)
        { 
            return dal.LoadAbsenceTreeView(JobSite, Employee, parent_id);
        }
        public IList<TreeViewInfo> TreeRoyalItemRequest(string EmployeeType, string ReguestYear, string parent_id)
        {
            return dal.TreeRoyalItemRequest(EmployeeType, ReguestYear, parent_id);
        }
    }
}
